Skip to content

Conversation

DataTriny
Copy link
Contributor

@DataTriny DataTriny commented Sep 28, 2025

Closes #11759

Making name and version appear as headings inside search results list is important for screen-reader users. It allows for jumping between elements of a list by pressing a single key on the keyboard.

Level 2 headings seem to be more appropriate given the current site structure.

I went with ARIA roles and attributes rather than h2 tag so as to not mess up the visual appearance. If using the semantic tag is preferred, please provide the right CSS rules as I am not able to verify this myself.

Copy link
Member

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! let's give this a try :)

@Turbo87 Turbo87 merged commit 4576c18 into rust-lang:main Sep 29, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accessibility: Crate names should be headings

3 participants